-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sink(ticdc): add batch field to resolveTs #5342
sink(ticdc): add batch field to resolveTs #5342
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
f6ae747
to
d0f7a81
Compare
/run-all-tests |
/run-all-tests |
/run-kafka-integration-test |
2 similar comments
/run-kafka-integration-test |
/run-kafka-integration-test |
/run-leak-test |
/run-check-issue-triage-complete |
/run-all-tests |
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. @@ Coverage Diff @@
## master #5342 +/- ##
================================================
- Coverage 56.1240% 55.7589% -0.3651%
================================================
Files 522 527 +5
Lines 65325 69605 +4280
================================================
+ Hits 36663 38811 +2148
- Misses 25094 27069 +1975
- Partials 3568 3725 +157 |
@nongfushanquan: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/run-all-tests |
cdc/model/mounter.go
Outdated
// ResolvedTs is the resolved timestamp of sink module. | ||
type ResolvedTs struct { | ||
Ts uint64 | ||
Batch bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we can add some comments here, what is the usage of Batch
, and why do we need it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is commented on the FlushRowChangedEvents of sink module.
2f4f58c
to
0aae81c
Compare
/run-all-tests |
0aae81c
to
c507333
Compare
/run-all-tests |
c507333
to
7fffb30
Compare
This PR doesn't change any logic, only adds the batch field, is it right? |
Yes |
7fffb30
to
458705f
Compare
63f12d4
to
434508b
Compare
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 434508b
|
/run-dm-integration-test |
What problem does this PR solve?
Issue Number: close #5398
What is changed and how it works?
Add batch field to resolveTs
Added batch Resolved semantics support to Sink's
FlushRowChangedEvents
interface:resolved.Batch == false
, TiCDC guarantees that all the Events whose commitTs is less than or equal toresolved.Ts
are sent to Sink throughEmitRowChangedEvents
.resolved.Batch == true
, TiCDC guarantees that all events whose commitTs is less than 'resolved.Ts' are sent to Sink.Check List
Tests
Code changes
Side effects
Release note